package com.springboot.helloworld.enums;

/**
 * @version v1.0
 * @description: 返回结果枚举类
 * @author: xiaoliang.liu
 * @date: 2018/7/2 0:55
 */
public enum ResultEnum {
    /**
     * 未知错误
     */
    UNKNOWN_ERROR(-1, "未知错误"),
    SUCCESS(0, "成功"),
    LESS_TEN(100, "小于10"),
    TEN_TO_SIXTEEN(101, "10-16之间"),;

    private Integer code;

    private String msg;

    ResultEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
